package cn.itcalvin.sncoal.cth.pojo.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Classname ReqPage
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/10/17 22:45
 * @Created by CALVIN
 */
@Data
public class ReqPage {
    /**
     * 分页页码
     */
    @ApiModelProperty(value = "分页页码", name = "pageIndex", example = "1",required = false)
    @NotNull(message = "分页页码不能为空")
    @Min(1)
    private int pageIndex=1;
    /**
     * 分页大小
     */
    @ApiModelProperty(value = "分页大小", name = "pageSize", example = "10",required = false)
    @NotNull(message = "分页大小不能为空")
    @Max(100)
    private int pageSize=15;
}